﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="Web6_Sample._Default" %>


<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div style="color: #000000">
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
         <ContentTemplate>
        <%-- Noi dung ben trong--%>
         </ContentTemplate>
        </asp:UpdatePanel>
        <%--It's Me. Uzumaki Naruto--%>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
        <asp:GridView CssClass="grv" ID="grvNguoidung" runat="server" AllowPaging="True"
            EmptyDataText="Không có dữ liệu hiển thị." AutoGenerateColumns="False" CellPadding="4"
            DataKeyNames="Id" Width="100%" OnRowCancelingEdit="GrvRowCancelingEdit" OnRowEditing="GrvRowEditing"
            OnRowUpdating="GrvRowUpdating" OnPageIndexChanging="GrvPageIndexChanging" OnRowDeleting="GrvRowDeleting"
            OnRowDataBound="GrvDataBound">
            <HeaderStyle BackColor="#E4E4E4" Font-Bold="True" />
            <EditRowStyle BackColor="#999999" />
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <Columns>
                <asp:TemplateField HeaderText="STT">
                    <ItemTemplate>
                        <%# Container.DataItemIndex + 1 %>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    <ItemStyle HorizontalAlign="Center" Width="20px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tên quảng cáo">
                    <EditItemTemplate>
                        <asp:TextBox CssClass="textbox" MaxLength="50" Width="96%" ID="txtuserName" Text='<%# Bind("Name") %>'
                            runat="server"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lbTentruyCap" runat="server" Text='<%# Bind("Name") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    <ItemStyle HorizontalAlign="left" Width="300px" />
                </asp:TemplateField>
               
                <asp:CommandField ShowEditButton="True" ShowCancelButton="true" EditText="Sửa" CancelText="Huỷ"
                    UpdateText="Cập nhật">
                    <ItemStyle Width="80px" VerticalAlign="Middle" HorizontalAlign="Center" />
                </asp:CommandField>
                <asp:CommandField DeleteText="Xóa" ShowDeleteButton="True">
                    <ItemStyle Width="70px" VerticalAlign="Middle" HorizontalAlign="Center" />
                </asp:CommandField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:CheckBox ID="ChkAll" runat="server" AutoPostBack="true" OnCheckedChanged="ChkAllCheckChanged" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="chkItem" runat="server" />
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    <ItemStyle Width="20px" />
                </asp:TemplateField>
            </Columns>
            <PagerStyle HorizontalAlign="Center" BackColor="#E4E4E4" />            
        </asp:GridView>
            </ContentTemplate>
        </asp:UpdatePanel>
        
</asp:Content>


